package ioRedirection;

import java.io.*;

public class SumFilter {
	public static void main(String[] args) throws Exception{
		String line;
		double first,second,sum;
		BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
		System.out.println("input 1:");
		line = input.readLine();
		first = Double.parseDouble(line);
		System.out.print("\ninput 2:");
		line = input.readLine();
		second = Double.parseDouble(line);
		sum = first + second;
		System.out.println("\nsum of " + first + " and " + second + " is " + sum);
	}
}
